<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Start a transaction</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="amqpchannel.setprefetchsize.html">AMQPChannel::setPrefetchSize</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.amqpexchange.html">AMQPExchange</a></div>
 <div class="up"><a href="class.amqpchannel.html">AMQPChannel</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="amqpchannel.starttransaction" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">AMQPChannel::startTransaction</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">AMQPChannel::startTransaction</span> &mdash; <span class="dc-title">Start a transaction</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-amqpchannel.starttransaction-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>AMQPChannel::startTransaction</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
    Start a transaction. This method must be called on the given channel prior to calling <span class="methodname"><a href="amqpchannel.committransaction.html" class="methodname">AMQPChannel::commitTransaction()</a></span> or <span class="methodname"><a href="amqpchannel.rollbacktransaction.html" class="methodname">AMQPChannel::rollbackTransaction()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-amqpchannel.starttransaction-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 errors" id="refsect1-amqpchannel.starttransaction-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws <strong class="classname">AMQPConnectionException</strong> if the connection to the broker was lost.
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-amqpchannel.starttransaction-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
    成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="amqpchannel.setprefetchsize.html">AMQPChannel::setPrefetchSize</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.amqpexchange.html">AMQPExchange</a></div>
 <div class="up"><a href="class.amqpchannel.html">AMQPChannel</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
